import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';

// 查询车辆信息
export const queryVehicle = params => axios.get(`${SERVER.DMSCLOUD_FINANCE}/finance/advancesReceived/queryVehicle`, { params });
// 查询保险费收款
export const queryInsurancePay = params => axios.get(`${SERVER.DMSCLOUD_FINANCE}/finance/advancesReceived/queryInsurancePay`, { params });
// 预收款详细信息查询
export const queryPrePay = params => axios.get(`${SERVER.DMSCLOUD_FINANCE}/finance/advancesReceived/queryPrePay`, { params });
// 客户弹窗查询
export const queryCustomer = params => axios.get(`${SERVER.DMSCLOUD_FINANCE}/basedata/freeSettlement/queryOwnerAndCustomer`, { params });
// 保存
export const save = params => axios.put(`${SERVER.DMSCLOUD_FINANCE}/finance/advancesReceived/save`, params);
// 查询发票类型
export const findInvoiceType = params => axios.get(`${SERVER.DMSCLOUD_FINANCE}/finance/advancesReceived/findInvoiceCode`, { params });
// 查询所有员工
export const getAllUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);
